import {createRouter,createWebHistory} from 'vue-router'
//编写路由函数，指定路径跳转
const router = createRouter({
    history: createWebHistory(),
    routes: [
        {name:'home',path:'/',component:()=>import('../views/One.vue')},
        {name:'test',path:'/test',component:()=>import('../views/Two.vue')},
    ]
})
//导出
export default router;